#include "StdAfx.h"
#include "UCDialogBuilder.h"
#include "UCComboBox.h"
#include "UCButton.h"
#include "UCArrowButton.h"
#include "UCListHeader.h"
#include "UCLabel.h"

CUCDialogBuilder::CUCDialogBuilder(void)
{
}

CUCDialogBuilder::~CUCDialogBuilder(void)
{
}

 
CControlUI* CUCDialogBuilder::CreateControl(LPCTSTR pstrClass)
{
	CControlUI *pControl = NULL;
	if( _tcscmp(pstrClass, _T("UCComboBox")) == 0 )  
	{
		pControl =  new CUCComboBox();
	}
	else if( _tcscmp(pstrClass, _T("UCButton")) == 0 )  
	{
		pControl =  new CUCButton();
	}
	else if( _tcscmp(pstrClass, _T("UCArrowButton")) == 0 )  
	{
		pControl =  new CUCArrowButton();
	}	
	else if( _tcscmp(pstrClass, _T("UCListHeader")) == 0 )  
	{
		pControl =  new CUCListHeader();
	}
	else if( _tcscmp(pstrClass, _T("UCLabel")) == 0 )  
	{
		pControl =  new CUCLabel();
	}	
	return pControl;
}